Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getOrCreateOpenOrders function #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metaproph3t
Copy link
Collaborator

An analogue to getOrCreateAssociatedTokenAccount. It helps me, as a user of the TS client.

An analogue to `getOrCreateAssociatedTokenAccount`. It helps me, as a
user of the TS client.
@metaproph3t
Copy link
Collaborator Author

nevermind, I see from digging more into the code that this approach doesn't work

an alternative would be nice

@mschneider
Copy link
Contributor

mschneider commented Oct 30, 2023

You can use Atoken CreateAssociatedTokenAccountIdempotent

@metaproph3t
Copy link
Collaborator Author

to create the open orders account?

@mschneider
Copy link
Contributor

sorry for the drive by comments, what i meant is: you could add an idempotent operation similar to the one supported by associated token program, i find these in general very convenient to work with and they lead to nicer ux as users don't need to wait through the latency added by another rpc requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants